package com.cw.japp

class Recording {

	String recorderStreamId
	Date recordStart
	Date recordEnd
	String previewImageUri
	Boolean isRecording
	Boolean isImage
	String filename
	Integer status
	Date lastModifiedDate
	Date createdDate
	Users users
	Room room

	static belongsTo = [Room, Users]

	static mapping = {
		id column: "recording_id"
		version false
	}

	static constraints = {
		recorderStreamId nullable: true
		recordStart nullable: true
		recordEnd nullable: true
		previewImageUri nullable: true
		isRecording nullable: true
		isImage nullable: true
		filename nullable: true
		status nullable: true
		lastModifiedDate nullable: true
		createdDate nullable: true
	}
}
